package com.ktjy.ch15.mapper;

import com.ktjy.ch15.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    public List<SysRole> getAll();

    public SysRole getByCode(@Param("code") String code);

    public int insert(SysRole sysRole);

    public SysRole getById(@Param("id") Long id);

    public int update(SysRole sysRole);

    public int delete(@Param("id") Long id);

    public SysRole findByCode(@Param("code") String code);

    public int count(Long roleId);
}
